package cn.basic.social.api.qwtalk.channel.internal.response;

import cn.basic.social.api.qwtalk.QwResponse;

import java.io.Serializable;

/**
 * @ClassName InternalGetAccessTokenResponse
 * @Description 获取access_token返回值
 * @Author zlf
 * @Date 2023/8/25 10:59
 */
public class InternalGetAccessTokenResponse extends QwResponse implements Serializable {

    /**
     * 获取到的凭证，最长为512字节
     */
    private String accessToken;

    /**
     * 凭证的有效时间（秒）
     */
    private Long expiresIn;

    public InternalGetAccessTokenResponse() {
    }

    public InternalGetAccessTokenResponse(String accessToken, Long expiresIn) {
        this.accessToken = accessToken;
        this.expiresIn = expiresIn;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Long getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Long expiresIn) {
        this.expiresIn = expiresIn;
    }
}
